package com.lufei.dh.List.Adapter;

import android.content.Context;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lufei.dh.R;

import java.util.List;

/**
 * Created by Administrator on 2018/3/26 0026.
 */

public class Adapter_List extends BaseQuickAdapter<String, BaseViewHolder> {
    Context mContext;
    public Adapter_List(@Nullable List<String> data,Context context) {
        super(R.layout.list_item, data);
        mContext=context;
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        ImageView view = helper.getView(R.id.id_item_image);
        Glide.with(mContext).load(item).into(view);
    }
}
